<!DOCTYPE html> 
<html lang="fr">
    <head>
        <meta charset="utf-8">
        <title>UFC - Ultimate Fighting Championship</title>
        <link href="css/index.css" rel="stylesheet" media="screen">
        <link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico">
        <link rel="stylesheet" href="css/design2.css"/>
        <link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css"/>
        <link rel="stylesheet" href="css/jquery-ui-1.10.0.custom.css" type="text/css"/>
        <script src="js/jquery-1.8.2.min.js" type="text/javascript"></script>
        <script src="js/jquery.validationEngine-fr.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/jquery-ui.min.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/fonctions.js" type="text/javascript" charset="utf-8"></script>
        <script src="js/menuscroll.js" type="text/javascript" charset="utf-8"></script>
    </head>
    <body>
<?php session_start()?>
        <?php include('page/outils/menu.php') ?>

        <div id="content_top">

            <div id="content_top_center">

                <div class="content_gauche">
                    <?php include('page/outils/logo_recherche.php') ?>
                </div>

                <div class="content_droite">

                    <div class="content_droite_gauche">
                        <?php include('page/outils/slider.php') ?>
                    </div>

                    <div class="content_droite_droite">
                        <?php if (isset($_GET['route'])) 
                            {
                                $route = $_GET['route'];
                                include("./page/outils/sondage.php");
                            } 
                            else 
                                {
                                $route = "sondage";
                                }

                            switch ($route) {
                                case "sondage":
                                    include("./page/outils/sondage.php");
                                    break;
                                case "voter":
                                    include("./page/outils/voter.php");
                                    break;
                            }
                                 ?>
                    </div>
                                

                </div>

            </div>

        </div>

        <div id="content_principal">
            <div id="content_principal_gauche">
                                                    <div id="Reunions">
                                    <h1>Réunions</h1>	
                                    <?php include('page/outils/news.php') ?>
                                        </div>

                                   

                                    <div class="Combats">
                                    <h1>Combats</h1>	
                                    <?php include('page/outils/news.php') ?>
                                        </div>
            </div>
            <div id="content_principal_droite">
                                     
                <?php
                if (isset($_GET['route'])) {
                    $route = $_GET['route'];
                } else {
                    $route = "accueil";
                }

                switch ($route) {
                    case "accueil":
                        include("./page/accueil.php");
                        break;
                    case "combattant":
                        include("./page/combattant.php");
                        break;
                    case "regles":
                        include("./page/regles.php");
                        break;
                    case "archive":
                        include ("./controleur/controleur_archive.php");
                        break;
                    case "questcequelufc":
                        include ("./page/questcequelufc.php");
                        break;
                    case "combat":
                        include ("./page/combat.php");
                        break;
                    case "historique":
                        include ("./page/historique.php");
                        break;
                    case "futurcombat":
                        include ("./page/futurcombat.php");
                        break;
                    case "notrefederation":
                        include ("./page/notrefederation.php");
                        break;
                    case "credits":
                        include ("./page/credits.php");
                        break;
                    case "nouscontacter":
                        include ("./page/nouscontacter.php");
                        break;
                    case "sinscrire":
                        include ("./controleur/controleur_utilisateur.php");
                        break;
                    case "connexion":
                        include ("./page/connexion.php");
                        break;
                    case "commentaire":
                        include ("./controleur/controleur_commentaire.php");
                        break;
                }
                ?>
            </div>
        </div>
        <?php include('page/outils/footer.php') ?>

    </body>
</html>